package com.ndp.fb.mq.service.schedulerservice.adpublish;

import com.ndp.fb.mq.api.service.publishhandleservice.PublishPreProcessorHandle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by hunk.qin on 2016/1/19.
 */
@Component
public class PrePublishProcessScanService {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private PublishPreProcessorHandle publishPreProcessorHandle;

    public void execute(Long batchiId){
        logger.info("start execute pre publish process handle ,batch id is {}",batchiId);
        publishPreProcessorHandle.handle(String.valueOf(batchiId));
        logger.info("end execute pre publish process handle ,batch id is {}",batchiId);
    }
}
